package com.jiawa.wiki.service;

import com.jiawa.wiki.mapper.EbookSnapshotCustom;
import com.jiawa.wiki.response.StatisticResp;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EbookSnapshotService {

    @Resource
    private EbookSnapshotCustom ebookSnapshotCustom;

    /**
     * 获取统计数据
     * @return
     */
    public List<StatisticResp> getStatistic() {
        return ebookSnapshotCustom.getStatistic();
    }

    public List<StatisticResp> get30Statistic() {
        return ebookSnapshotCustom.get30Statistic();
    }
}
